package com.bootdo.lvyou.dao;

import com.bootdo.lvyou.domain.LvyouCateImg;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 轮播图表
 * @author lujingqian
 * @email 965858129@qq.com
 * @date 2019-10-10 13:45:17
 */
@Mapper
public interface LvyouCateImgDao {

	LvyouCateImg get(Long id);
	
	List<LvyouCateImg> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(LvyouCateImg lvyouCateImg);
	
	int update(LvyouCateImg lvyouCateImg);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	@Select("select * from me_lvyou_cate_img where source_id=#{sourceId} and source_logo=#{cateLogo}and is_show=1")
    List<LvyouCateImg> getByIdAll(@Param("sourceId") Long sourceId, @Param("cateLogo")String cateLogo);
}
